// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
//引入公共CSS样式
import Vue from 'vue'
import App from './App'
import router from './router'
import '@/css/base.css'
import common from '@/js/common/common'
import moment from 'moment'
// Vue.config.debug = true;
Vue.config.productionTip = false;
//获取公共JS插件里某一个函数，赋值给vue
Vue.prototype.checkStringNull = common.checkStringNull;
//引用一个公共的js文件，赋给vue，起名为base，在使用时要加一层base，如this.base.函数名
Vue.prototype.base = common;

/**
 * UTC时间过滤
 * **/
//精确到日
Vue.filter('UTClocaldd',function (utc) {
  return moment(utc).format('YYYY-MM-DD')
});
//精确到分
Vue.filter('UTClocalmm', function (utc) {
  return moment(utc).format('YYYY-MM-DD HH:mm')
});
//精确到秒
Vue.filter('UTClocalss',function (utc) {
  return moment(utc).format('YYYY-MM-DD HH:mm:ss')
});



/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  mounted(){

  }
});
